package practice.w910;

public class TrimDemo {
    public static void main(String[] args) {
        String str = "  我爱Java!  ";
        String trimStr = str.trim();
        System.out.println(trimStr);

//        String str = "  我爱Java!  ";
//        String trimStr = str.trim();
//        System.out.println(trimStr);
    }
}
